package com.parking.stall.exception;

import com.parking.common.core.exception.ParkingException;
import com.parking.stall.exceptionCode.StallExceptionCode;


/**
 * StallException:车位模块异常
 */
public class StallException extends ParkingException {
    /**
     *
     * @param message:异常消息
     * @param code:响应表编号
     */
    public StallException(String message, Integer code) {
        super(message, code);
    }

    /**
     *
     * @param stallExceptionCode:车辆异常枚举对象
     */
    public StallException (StallExceptionCode stallExceptionCode){
        super(stallExceptionCode.getMessage(),stallExceptionCode.getCode());

    }

}
